git

Home > Software Notes > Tools

undoing last commit

Keep changes in staged area:

git reset --soft HEAD~1
Delete all changes:
git reset --hard HEAD~1